<template>
  <Demo @showMsg="showMsg" msg="hi" school="nu">
    <span>some shit</span>
    <!-- <template slot="qwe"> -->
    <template v-slot:qwe>
      <span>some other shit</span>
    </template>
  </Demo>
</template>

<script>
import Demo from "./components/Demo.vue";
export default {
  name: "App",
  components: {
    Demo,
  },
  setup() {
    function showMsg(value) {
      alert("你好，你触发了showMsg事件，我收到的参数是" + value);
    }

    return {
      showMsg,
    };
  },
};
</script>
